package com.sneakxy.cloudbase.platform.bean;

import java.io.Serializable;

import com.sneakxy.mybatis.commons.annotations.Column;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@ApiModel("账号角色关联信息复合主键")
@EqualsAndHashCode(callSuper = false)
public class AccountRoleId implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5803224059687067531L;

	@Column("account_id")
	@ApiParam("账户ID")
	@ApiModelProperty("账户ID")
	private String accountId;

	@Column("role_id")
	@ApiParam("角色ID")
	@ApiModelProperty("角色ID")
	private String roleId;
	
	public AccountRoleId() {}
	
	public AccountRoleId(String accountId, String roleId) {
		this.accountId = accountId;
		this.roleId = roleId;
	}

}
